//
//  ZXNotificationManager.h
//  MortgageHelper
//
//  Created by fly Mac on 16/7/7.
//  Copyright © 2016年 zhangxiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "JPUSHService.h"


#define ZXNotificationManage  ([ZXNotificationManager sharedManager])

static NSString *CHANNEL=@"APP_STORE";
static NSString *APP_KEY=@"7a8d069cd4efaa46587a023b";

@interface ZXNotificationManager : NSObject

@property (nonatomic,strong,readonly) NSString *deviceToken;

@property (nonatomic,copy)NSString * Id; // 结果集id 记录是否是当前结果集页面


+(ZXNotificationManager *)sharedManager;


/**
 *  注册用户通知
 */
- (void)registerUserNotification:(NSDictionary *)launchOptions;

/**
 *  处理获得DeviceToken
 *
 *  @param deviceToken deviceToken
 */
- (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;

/**
 *  响应收到本地通知
 *
 *  @param notification 本地通知
 */
- (void)didReceiveLocalNotification:(UILocalNotification *)notification;
/**
 *  通知跳转
 *
 *  @param msgDic 内容字典
 */

- (void)goToMssageViewControllerWith:(NSDictionary*)msgDic;


// 检查一次通知开启
-(BOOL )checkOnceAlertNotification:(UIViewController *)ViewController;

@end
